PARSER=parser
DUG=debug
HTTP_SERVER=httpserver
cc=g++

.PHONY:all
all:$(PARSER) $(HTTP_SERVER)

$(PARSER):parser.cc
	$(cc) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11
$(HTTP_SERVER):httpserver.cc
	$(cc) -o $@ $^ -ljsoncpp -lpthread -std=c++11

.PHONY:clean
clean:
	rm -f $(PARSER) $(HTTP_SERVER)

#Debug
# .PHONY:all
# all:$(PARSER) $(DUG) $(HTTP_SERVER)

# $(PARSER):parser.cc
# 	$(cc) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11
# $(DUG):debug.cc
# 	$(cc) -o $@ $^ -ljsoncpp -std=c++11 
# $(HTTP_SERVER):httpserver.cc
# 	$(cc) -o $@ $^ -ljsoncpp -lpthread -std=c++11

# .PHONY:clean
# clean:
# 	rm -f $(PARSER) $(DUG) $(HTTP_SERVER)
